package user.zc.excel.data.builder;


import user.zc.excel.data.info.ICell;
import user.zc.excel.data.info.TitleCell;

public class TitleBuilder<T>  implements IBuilder<T, ICell.CellInfo[]>{


    @Override
    public ICell.CellInfo[] collect(Class<T> clazz) {
        ICell.CellInfo cellInfo = new TitleCell().parse(clazz);
        if(cellInfo==null){
            return new ICell.CellInfo[]{};
        }
        return new ICell.CellInfo[]{new TitleCell().parse(clazz)};
    }
}
